// 针对于首页的封装
//请求工具类导进来 解耦
import request from '../utils/request'

/**
 * 获取banner图
 */
export function getBanner(type){
    let url = '/banner?type='+type;
    return request(url);
}

/**
 * 搜索推荐接口
 */
export function getSuggest(keywords){
    let url = '/search/suggest?keywords='+keywords+'&type=mobile';
    return request(url);
}